<?php $this->load->view('global_header'); ?>
<link rel="stylesheet" type="text/css" href="/assets/css/lawyer.css"/>

<div>
    <a href="<?php echo base_url(); ?>admin.php?c=lawyer&m=create">添加律师成员</a>
</div>
<div class="lawyers">
    <?php foreach ($lawyers as $lawyer): ?>
    <div class="lawyer entry">
        <?php if($photo = $this->photo->find($lawyer->photo_id)): ?>
        <img src="/assets/images/uploads/<?php echo $photo->file_name; ?>" alt="<?php echo $photo->label; ?>"/>
        <?php endif; ?>
        <h5>姓名：</h5><?php echo $lawyer->name; ?><div></div>
        <h5>性别：</h5><?php echo $lawyer->sex?'男':'女'; ?>
        <p><?php echo $lawyer->content; ?></p>
        
        <div class="footer">
            <div class="time">创建于：<?php echo $lawyer->created_at; ?></div>
            <div class="actions">
                <a href="<?php echo base_url(); ?>admin.php?c=lawyer&m=edit&id=<?php echo $lawyer->id; ?>">修改</a>
                <a href="<?php echo base_url(); ?>admin.php?c=lawyer&m=delete&id=<?php echo $lawyer->id; ?>">删除</a>
            </div>
        </div>
    </div>
    <?php endforeach; ?>
    <div class="clear"></div>
</div>
<div class="page_links">
    <?php echo $page_links; ?>
</div>
<?php $this->load->view('global_footer'); ?>